/**
 * 
 */
package com.testapp;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

/**
 * @author Pratik
 * Created on : 26-Jun-2011, 9:08:30 PM
 */
@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Comment {
	
	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Long commentId;
	
	@Persistent
	private String fromPerson;
	
	@Persistent
	private String commentStr;

	/**
	 * @param fromPerson
	 * @param commentStr
	 */
	public Comment(String fromPerson, String commentStr) {
		super();
		this.fromPerson = fromPerson;
		this.commentStr = commentStr;
	}

	public String getFromPerson() {
		return fromPerson;
	}

	public void setFromPerson(String fromPerson) {
		this.fromPerson = fromPerson;
	}

	public String getCommentStr() {
		return commentStr;
	}

	public void setCommentStr(String commentStr) {
		this.commentStr = commentStr;
	}
	
}
